package com.fyzk.activity.main;

import android.Manifest;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AlertDialog;
import android.text.TextUtils;
import android.view.View;
import android.widget.RadioButton;
import android.widget.RadioGroup;

import com.alibaba.fastjson.JSON;
import com.fyzk.activity.app.ActivityTaskManager;
import com.fyzk.activity.app.App;
import com.fyzk.activity.fragment.DiscoverFragment;
import com.fyzk.activity.fragment.ForumFragment;
import com.fyzk.activity.fragment.GoldDocumentaryFragment;
import com.fyzk.activity.fragment.GouCaiFragment;
import com.fyzk.activity.fragment.PersonalFragment;
import com.fyzk.activity.fragment.ScoreAwardFragment;
import com.fyzk.activity.fragment.ScoreFragment;
import com.fyzk.base.BaseActivity;
import com.fyzk.base.IBaseActivity;
import com.fyzk.data.AppLotteryInfos;
import com.fyzk.data.preference.MySharedPreferences;
import com.fyzk.utils.LogUtils;
import com.fyzk.utils.Utils;
import com.fyzk.utils.update.UpdateManager;
import com.fyzk.utils.update.VersionModel;
import com.fyzk.view.ViewCallBack;
import com.tyjc.lottery.BuildConfig;
import com.tyjc.lottery.R;
import com.wf.domain.UrlDef;

import org.json.JSONObject;
import org.xutils.view.annotation.ContentView;

import java.util.List;

import http.Common.CommandUtil;
import http.StringResultBean;
import pub.devrel.easypermissions.AfterPermissionGranted;
import pub.devrel.easypermissions.AppSettingsDialog;
import pub.devrel.easypermissions.EasyPermissions;

@ContentView(R.layout.dj_activity_shishibifen)
public class ShishibifenActivity extends BaseActivity
{
    @Override
    protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            ScoreFragment scoreFragment=new ScoreFragment();
            FragmentManager fm = getSupportFragmentManager();
            FragmentTransaction ftran =fm.beginTransaction();
            ftran.replace(R.id.fl_main_content11,scoreFragment);
            ftran.commit();
            Intent i=new Intent();
            i.setClass(ShishibifenActivity.this, ScoreFragment.class);
            i.putExtra("id", 1);
//        FragmentManager fm = getSupportFragmentManager();
//        scoreFragment = (ScoreFragment) fm.findFragmentById(R.id.fl_main_content);
    }
}
